<script>
export default {
    data() {
        return {
            count: 0
        }
    },

    methods: {
        addCount() {
            console.log("this.count", this.count);
            this.count++;
        }
    }

}
</script>

<template>
    <h2>eventdemo1</h2>
    <button @click="count++">+1</button>
    <br>
    <button @click="addCount()">+1</button>
    <p>{{ count }}</p>
</template>
